﻿@model EditorialProyectos.Website.Models.BenefitViewModel
@{
    ViewBag.Title = "Main";
    if (true)
    {
        Layout = "~/Views/Shared/_AdminLayout.cshtml";
    }
    else
    {
        Layout = "~/Views/Shared/_UserLayout.cshtml";
    }
}

@section Scripts{
    @Content.ViewModel("BenefitViewModel.js", Url)
    @Html.KOGridTemplate(model => model.List)

    <script>
        var modelData = '@Html.Raw(Model.ToJson())';
        var modelJSON = JSON.parse(modelData);

        var viewModel = new BenefitViewModel(modelJSON);
        ko.applyBindings(viewModel);
    </script>
}
s
<div class="jumbotron color-white">
     @Html.Partial("BenefitPartial", Model)
</div>
